const Layout = () => import('@/layout/Index.vue')
const Resources = () => import('@/views/donate/Resources.vue')
const Commodity = () => import('@/views/donate/Commdity.vue')
const Apply = () => import('@/views/donate/Apply.vue')
const Order = () => import('@/views/donate/Order.vue')
export default [
  {
    path: '/donate',
    component: Layout,
    name: 'donate',
    meta: {
      title: '捐献管理',
    },
    icon: 'donate',
    roles: ['admin', 'visitor'],
    children: [
      {
        path: '/resources',
        name: 'resoucesList',
        component: Resources,
        meta: {
          title: '资源列表',
          roles: ['admin', 'visitor'],
        },
      },
      {
        path: '/commodity',
        name: 'commodityList',
        component: Commodity,
        meta: {
          title: '兑换列表',
          roles: ['admin', 'visitor'],
        },
      },{
        path: '/apply',
        name: 'applyList',
        component: Apply,
        meta: {
          title: '捐献订单',
          roles: ['admin', 'visitor'],
        },
      },{
        path: 'order',
        name: 'orderList',
        component: Order,
        meta: {
          title: '兑换订单',
          roles: ['admin', 'visitor'],
        },
      },
    ],
  },
]